// pages/event/event.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    count: 100,
    msg: ''
  },
  add(){
      console.log('你好端午');
      this.setData({
          count: this.data.count + 1
      })
  },
  addNum(event){
   console.log(event.target.dataset.num);
   this.setData({ count: this.data.count + event.target.dataset.num })
  },
  viewClick(){
    console.log('viewClick被点击了');
  },
btnClick(event){
    console.log(event);
    console.log('btnClick被点击了');
},
})